package com.eleadmin.common.system.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 留言表
 *
 * @author EleAdmin
 * @since 2025-04-28 22:40:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Message对象", description = "留言板")
@TableName("t_message")
public class Message implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "留言内容")
    private String content;

    @ApiModelProperty(value = "发起人")
    private Integer userId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    @TableField(exist = false)
    private String userImage;
    
    @TableField(exist = false)
    private String nickName;

}
